﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dukou.Caching
{
    /// <summary>
    /// 缓存服务接口
    /// </summary>
    public interface ICacheService
    {
        /// <summary>
        /// 获取指定名称的分类缓存
        /// </summary>
        /// <typeparam name="TKey">键类型</typeparam>
        /// <typeparam name="TValue">值类型</typeparam>
        /// <param name="categoryName"></param>
        /// <returns></returns>
        ICategoryCache<TKey, TValue> GetCategoryCache<TKey, TValue>(string categoryName);
    }
}
